inspector: Avoid weak ref problems
authorMatthias Clasen <mclasen@redhat.com>
Wed, 21 May 2014 10:41:20 +0000 (06:41 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 21 May 2014 10:44:44 +0000 (06:44 -0400)
commit11abc517f5bb98cec5bf9fcc80c4e800ab8ea48f
treef95f8b9727550a566eaa3ed2887269866e072f23
parentd39ee6c81c4a5fdf38befccbf21d2c4fdf67e3c0
inspector: Avoid weak ref problems

We know the objects in a size group are always widgets, so we
can avoid hard-to-track down problems with weak references by
just cleaning up when the object gets destroyed. There is still
a chance that we show a widget as part of the group after it
has been removed, but size groups simply have no signals that
would let us avoid that.
gtk/inspector/size-groups.c